#ifndef __CARSTOP_H_
#define __CARSTOP_H_

#include <string>
#include <ctime>
#include "LinkStack.h"
#include "LinkQueue.h"
struct Car
{
    Car(const std::string & Name):Name(Name),arriveTime(0),leaveTime(0){}
    std::string Name;//车牌号
    time_t arriveTime;//到达时间
    time_t leaveTime;//离开时间
};



class CarStop
{
public:
    CarStop(int size):size(size){}
    ~CarStop();
    void ComeCar();
    void LeaveCar();
    void show();
private:
    LinkStack stop;//停车场
    LinkQueue pavement;//便道
    const int size;//停车位
};

#endif